@import "../../_common/style/mixins/var";
@import "../../_common/style/animations/rotate";
@mixin vmui-button {
  .vmui-button {
    display: inline-block;
    text-align: center;
    border: none;
    padding: 0 pxRem(14);
    border-radius: 3px;
    box-shadow: 0 0 1px #b8bbbf;
    font-weight: bolder;
    cursor: pointer;
    // size
    &.large {
      line-height: pxRem(49);
      font-size: pxRem(17);
    }
    &.normal {
      line-height: pxRem(39);
      font-size: pxRem(16);
    }
    &.small {
      line-height: pxRem(29);
      font-size: pxRem(15);
    }
    &.mini {
      line-height: pxRem(24);
      font-size: pxRem(14);
    }
    // primary
    &.default {
      background: $color-default;
      color: $color-default-text;
    }
    &.danger {
      background: $color-danger;
      color: #fff;
    }
    &.primary {
      background: $color-primary;
      color: #fff;
    }
    &.warning {
      background: $color-warning;
      color: #fff;
    }
    &.hollow {
      background: $color-hollow;
      color: $color-default-text;
    }
    &.plain {
      box-shadow: none;
      background: $color-hollow;
      color: $color-default-text;
    }
    &.is-disabled {
      opacity: .55;
      cursor: not-allowed;
      &:active {
        opacity: .55;
      }
    }
    &:active {
      opacity: 0.7;
    }

    i[class*="loading"] {
      display: inline-block;
      font-size: pxRem(16);
      animation: rotate 1.2s linear infinite;
    }
  }
}
